package com.rabbiter.oes.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.rabbiter.oes.entity.FillQuestion;
import com.rabbiter.oes.entity.MultiQuestion;
import com.rabbiter.oes.mapper.FillQuestionMapper;

import java.util.List;

public interface FillQuestionService extends IService<MultiQuestion> {

    List<FillQuestion> findRandom(Integer count,String subject);

    List<FillQuestion> findSequence(String subject);

    List<FillQuestion> findByIdAndType(String paperId);

    IPage<FillQuestion> findAll(Page<FillQuestion> page);

    FillQuestion findOnlyQuestionId();

    int add(FillQuestion fillQuestion);

    List<Integer> findBySubject(String subject,Integer pageNo);

    int edit(FillQuestion fillQuestion);


}
